package org.example.proxy.staticProxy;

//代理类
public class StudentProxy implements Person{

    //代理的学生对象
    private Student student;

    public StudentProxy(Student student){
        this.student = student;
    }

    @Override
    public void seedMsg(String mag) {
        //执行一些其他的方法
        System.out.println("xxxxxxxxxxxxxxxxxxxxxxx");
        //执行学生的方法
        student.seedMsg(mag);
    }
}
